package br.com.fiap.goaround;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.os.Handler;

/**
 * Splash screen da aplicacao. Tela inicial exibida enquanto os componentes sao
 * carregados.
 * 
 * @author Aline Silva
 * @author Alexandre Castro
 * @author Diogenes Buarque
 * @author Gabriel Biffi
 * @author Douglas Panhota
 */
public class SplashScreen extends Activity implements Runnable
{

	@Override
	protected void onCreate( Bundle savedInstanceState )
	{
		super.onCreate( savedInstanceState );
		setContentView( R.layout.layout_splash );
		Handler handler = new Handler();
		handler.postDelayed( this, 2000 );
	}

	public void run()
	{
		startActivity( new Intent( this, RouterActivity.class ) );
		finish();
	}

}
